<html>
<head>
<script type="text/javascript" src="./scripts/jquery-latest.js"></script>
<script src="./scripts/jquery.tabs.pack.js" type="text/javascript"></script>
<script src="./scripts/jquery.history_remote.pack.js" type="text/javascript"></script>

	<link rel="stylesheet" type="text/css" media="all" href="./css/css.css" />
	<link rel="stylesheet" href="./css/jquery.tabs.css" type="text/css" media="print, projection, screen">
	<!-- Additional IE/Win specific style sheet (Conditional Comments) -->
	<!--[if lte IE 7]>
	<link rel="stylesheet" href="jquery.tabs-ie.css" type="text/css" media="projection, screen">
	<![endif]-->
<script type="text/javascript">
jQuery(document).ready(init);
function actaddproduct(pcid) {
	$.post("?controller=Products&action=addnew",{"pcid":pcid},function(htmlcode) {
		$("#form_add_product").remove();
		$("#remote-tab-"+pcid).append(htmlcode); 
	});//点击添加新产品
}
		function add_file(){

			var fileInput = $("<input type='file' style='border:0px;width:350px;' name='product_media[]' />");
			$("#uploadfile").append(fileInput);
			$(fileInput).bind("change",function(){
//				$("#uploadfile").append($(fileInput).val()+"<span onclick='getval();'>值</span><br />");
			});
//			fileInput.click();
/*			var div = document.createElement('div');
			var temp = document.createElement('input');
			var forma = document.getElementById("test_form");
			forma.appendChild(div);
			temp.setAttribute('id','temp_file'+forma.children.length); 
//			temp.setAttribute('name','temp_file'+forma.children.length);
			temp.setAttribute('type','file');
			temp.style.display='none';
			temp.onchange=function(){div.innerHTML += "<li>"+temp.value+"  <span onclick='delete_file(this.parentElement.parentElement);' style='cursor:hand;color:blue;'>删除</span></li>";};
			div.appendChild(temp);
			temp.click();
*/
		}
		function delete_file(pNode){
			var forma = document.getElementById("test_form");
			forma.removeChild(pNode);
		}
		function a() {
			$("#test_form").submit();
		}
function init($) {
	$('#container-1').tabs({remote:true});
	$("#control_blocks").bind("click",function() {
		$("#content").html($("<div id=\"blocks_area\"></div>"));
		control_blocks();
	});
	function control_blocks() {
		//替换content内容为版块设置内容,功能:crud
		$.post(
			"?controller=JRBlocks",function(htmlcode){
			$("#blocks_area").html(htmlcode);
			if(typeof jiraa_blocks == "undefined") {
				$.getScript("./scripts/jiraa_blocks.js");
			} else {
				init();
			}
		});
	}
}	

</script>
<style type="text/css">

</style>
</head>
<body>
<div id="container" rel="页面容器">
	<div id="header" rel="头部">
		<form>
			<div id="login_area">
				<label class="">电子信箱</label><input type="text" id="email" name="email" value="" />
				<label class="">密码</label><input type="password" id="password" name="password" value="" />
				<input type="button" value="登陆" id="user_login" name="user_login" />
				<input type="button" value="注册" id="user_reg" name="user_reg" />
				<input type="button" value="忘记密码" id="user_pass" name="user_pass" />
			</div>
		</form>
	</div> 
	<div id="body" rel="中部">
		<div id="content" rel="主要内容容器">
			<div id="container-1">
<?php
/*thankwsx 大类列表*/
echo "<ul>";
foreach($product_classes as $key=>$class):
	echo "<li><a href='?controller=ProductWords&pcid=".$class['pcid']."'>".$class["class_name"]."</a></li>";
endforeach;
echo "</ul>";
/*thankwsx 大类下面的具体信息*/
?>
			</div>
		</div>
	</div>
	<div id="footer" rel="底部"></div> 
</div>
</body>
</html>